package cn.wolfcode.crm.service;


import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.page.PageResult;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface IRoleService {
    void saveOrUpdate(Role role);

    Role get(Long id);

    void delete(Long id);

    List<Role> listAll();

    PageResult query(QueryObject qo);

    List<Permission> queryPermissionsByRoleId(Long roleId);
}
